package com.cat.service.common.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.cat.bean.common.PageBean;
import com.cat.dao.common.UserDao;
import com.cat.entity.TbUser;
import com.cat.service.common.UserService;

@Service
public class UserServiceImpl extends BaseServiceImpl<TbUser, Integer> implements UserService {

	@Resource
	private UserDao userDao;

	@Resource
	public void setBaseDao(UserDao userDao) {
		super.setBaseDao(userDao);
	}

	@Override
	public List<TbUser> getUserList(TbUser user, PageBean page) {		
		return userDao.getUserList(user, page);
	}

	@Override
	public TbUser checkUserInfo(TbUser user) {
		// TODO Auto-generated method stub
		return userDao.checkUserInfo(user);
	}

	@Override
  public List<TbUser> getUserListByRoleId(String roleId) {
	  // TODO Auto-generated method stub
	  return userDao.getUserListByRoleId(roleId);
  }
	
}
